STEP 9: Time to call and build the subtract() function!

  • In LOGIC, from drop elif unindented at the very BOTTOM of your code.
  • Change the test variable from choice to operation and the test value from "yes" to "b".
  • From drop Function Call inside the if block and change the function name to subtract().

Run the code and enter b in the popup. We need to more code inside subtract() to make things happen!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)